package org.car.world.service.impl;

import java.util.List;

import org.car.world.core.entily.AppTable;
import org.car.world.core.mapper.AppTableMapper;
import org.car.world.service.AppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = {RuntimeException.class, Exception.class})
public class AppServiceImpl implements AppService {

    @Autowired
    AppTableMapper appTableMapper;

    @Override
    public int insert(AppTable record) {
        return appTableMapper.insert(record);
    }

    @Override
    public List<AppTable> selectAll() {
        return appTableMapper.selectAll();
    }

    @Override
    public List<AppTable> selectbyversion() {
        return appTableMapper.selectbyversion();
    }

}
